import request from '@/utils/request'
//筹备活动列表
const indexApi={
  getNav: function (data){ //获取导航
    return request({
      url:'/nav',
      method: 'get'
    })
  },
  getIndexBanner: function (data){ //获取首页banner
    return request({
      url:'/compt/info?comptCode=HOME_BANNER',
      method: 'get'
    })
  },
  getBanner: function (data){ //获取非首页banner
    return request({
      url:'/compt/info?comptCode=GLOBAL',
      method: 'get'
    })
  },
  getTerritoryCD: function (data){ //获取成都版图
    return request({
      url:'compt/info?comptCode=PLATE_CD',
      method: 'get'
    })
  },
  getSite: function (data){ //获取基本站点信息
    return request({
      url:'site?siteCode=hankang',
      method: 'get'
    })
  },
  getArticleList: function (data){ //获取文章列表
    return request({
      url:'/article/list?'+data.url+'&pageNum='+data.pageNum+'&pageSize='+data.pageSize,
      method: 'get'
    })
  },
  getArticleByUrl: function (data){ //获取文章详情根据url
    return request({
      url:data.url,
      method: 'get'
    })
  },
  getArticleById: function (data){ //获取文章详情 根据id
    return request({
      url:'/article/info?id='+data.id,
      method: 'get'
    })
  },
  getNavChild:function(data){//获取支道航
    return request({
      url:'/nav?id='+data.id,
      method:'get'
    })
  }
  
}
export default indexApi